home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-src / vars.c < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  65 lines

  1. /*  $VER: vbcc (vars.c) V0.4    */
  2.  
  3. #include "vbc.h"
  4.  
  5. char *s,*ident;
  6. char string[MAXINPUT+2],number[MAXI],buff[MAXI];
  7. struct struct_declaration *first_sd[MAXN],*last_sd[MAXN],*merk_sdf,*merk_sdl;
  8. struct struct_identifier *first_si[MAXN],*last_si[MAXN],*merk_sif,*merk_sil;
  9. struct identifier_list *first_ilist[MAXN],*last_ilist[MAXN],*merk_ilistf,*merk_ilistl;
  10. struct llist *first_llist,*last_llist;
  11. int nesting;
  12. struct Var *first_var[MAXN],*last_var[MAXN],*merk_varf,*merk_varl;
  13.  
  14.  
  15. FILE *out,*ic1,*ic2,*ppout;
  16.  
  17. int nocode;
  18. int registerpri=200,currentpri,looppri=10;
  19. int return_value,break_label,switch_typ,switch_count,switch_act;
  20. struct Typ *return_typ;
  21. struct Var *return_var;
  22. zlong local_offset[MAXN];
  23.  
  24. int c_flags[MAXCF]={
  25.     VALFLAG,STRINGFLAG,0,0,
  26.     VALFLAG,0,0,0,
  27.     VALFLAG,FUNCFLAG,FUNCFLAG,VALFLAG,
  28.     VALFLAG,0,0,0,
  29.     0,0,0,0,
  30.     0,0,0,0,0,
  31.     VALFLAG,0
  32. };
  33. char *c_flags_name[MAXCF]={
  34.     "O","o","ic1","ic2",
  35.     "debug","noasm","quiet","ansi",
  36.     "maxerrors","dontwarn","warn","maxoptpasses",
  37.     "inline-size","nested-comments","cpp-comments","macro-redefinition",
  38.     "no-trigraphs","no-preprocessor","E","dontkeep-initialized-data",
  39.     "strip-path","fp-associative","iso","no-alias-opt","no-multiple-ccs",
  40.     "unroll-size","double-push"
  41. };
  42. union ppi c_flags_val[MAXCF];
  43.  
  44. char *inname;
  45.  
  46. struct Var *regsbuf[MAXR+1];
  47. int regbnesting[MAXR+1];
  48.  
  49. struct const_list *first_clist,*last_clist;
  50.  
  51. int afterlabel;
  52.  
  53. struct err_out err_out[]={
  54. #include "errors.h"
  55. "",0
  56. };
  57. int err_num=sizeof(err_out)/sizeof(struct err_out)-1;
  58.  
  59. char *cur_func="shouldn't happen!";
  60. int read_new_line;
  61.  
  62.  
  63. char *copyright="vbcc V0.7 (c) in 1995-99 by Volker Barthelmann";
  64.  
  65.